   <script type="text/javascript">
           jQuery(document).ready(function(){
               // binds form submission and fields to the validation engine
               jQuery("#UsuarioInsertarForm").validationEngine();
           });
 </script>
<!-- Columns -->
      <div id="cols" class="box"> 
    
    <!-- Aside (Left Column) -->
    <div id="aside" class="box">
          <div class="padding box"> 
        
        <!-- Logo (Max. width = 200px) -->
        <p id="logo"><a href="#"><?php echo $this->Html->image('logo.gif', array('alt' => 'logo'))?></a></p>
        
        <!-- Search -->
        <form action="#" method="get" id="search">
              <fieldset>
            <legend>Busqueda</legend>
            <p>
                  <input type="text" size="17" name="" class="input-text" />
                  &nbsp;
                  <input type="submit" value="Buscar" class="input-submit-02" />
            
            
          </fieldset>
            </form>
        
      </div>
          <!-- /padding -->
          
             <ul class="box">
            <li><?php echo $this->Html->link('LISTA USUARIOS', '/usuarios/index'); ?></li>
            <li id="submenu-active"><a href="#">REGISTRAR NUEVO USUARIOo</a></li>
        </ul>
        </div>
    <!-- /aside -->
    
    <hr class="noscreen" />
    
    <!-- Content (Right Column) -->
    <div id="content" class="box">
          <h1>Insertar nuevo usuario</h1>
          <!-- Form -->
          
          
          <fieldset>
        <legend>Insertar nuevo usuario</legend>
        <?php echo $this->Form->create('Usuario');?>
        <table class="nostyle">
                
            <tr>
            <td style="width:120px;">Nombre Usuario:</td>
            <td>
                <?php echo $this->Form->text('nombre', array('id'=>'nomb', 'size'=>'50',  'class'=>"validate[required]  input-text"));?>
            </td>
          </tr>
             <tr>
               <td>Contrase&ncaron;a:</td>
               <td><?php echo $this->Form->password('contrasena', array('id'=>'pass', 'size'=>'50',  'class'=>"validate[required]  input-text"));?></td>
              </tr>
          </tr>
              <tr>
            <td class="va-top">Correo:</td>
            <td>
                <?php //echo $this->Form->text('contrasena', array('id'=>'ci','size'=>'50', "class"=>"input-text"));?>
                 <?php echo $this->Form->text('correo', array('id'=>'mail', 'size'=>'50','class'=>"validate[required, custom[email] input-text" ));?>
            </td>
            <tr>
	            <td>Sucursal:</td>
	            <td><?php echo $this->Form->input('sucursal_id', array('type' => 'select', 'options' => $sucursales, 'selected' => '1'));?></td>
            </tr>
          </tr>
              <tr>
            <td>
                     <?php echo $this->Form->input('estado', array('type' => 'select', 'options' => $opt, 'selected' => '1'));?>
            </td>
            <td>
                  <?php echo $this->Form->input('tipousuario_id', array('type' => 'select', 'options' => $tipos, 'selected' => '1'));?>
            </td>
          </tr>
              
              <tr>
                  <?php
                        $fecha = date("Y-m-d H:m:s");
                        echo $this->Form->hidden('fecha', array("value"=>$fecha));?>
            <td colspan="2" class="t-right">
                 <?php $opt = array('Value'=>'registrar', 'class'=>"input-submit");?>
                <?php echo $this->Form->end($opt);?>
            </td>
          </tr>
            </table>
      </fieldset>
      
          
    <!-- /content --> 
    
  </div>
      <!-- /cols -->
   